package cn.com.joycode.nimble.core.utils;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.RandomUtil;

/**
 * @author Max Woods
 * @since 1.0
 */

public class SnowflakeUtil {

    private static final Snowflake SNOWFLAKE = new Snowflake(RandomUtil.randomLong(32),
            RandomUtil.randomLong(32), true);

    public static long nextId() {
        return SNOWFLAKE.nextId();
    }
}
